<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员主界面</title>
    <style>
        body {
            background-color: #f2f2f2;
            font-family: Arial, sans-serif;
            color: #333;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 800px;
            margin: 0 auto;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 40px;
            position: relative;
            top: 100px;
        }

        h1 {
            font-size: 48px;
            margin-bottom: 40px;
            animation: fadeInDown 1s ease-in-out;
        }

        @keyframes fadeInDown {
            0% {
                opacity: 0;
                transform: translateY(-40px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card {
            position: relative;
            width: 300px;
            height: 180px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            margin: 20px;
            display: inline-block;
            animation: float 5s infinite ease-in-out;
        }

        @keyframes float {
            0% {
                transform: translatey(0px);
            }
            50% {
                transform: translatey(-20px);
            }
            100% {
                transform: translatey(0px);
            }
        }

        .card-content {
            padding: 20px;
        }

        .card-title {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .card-description {
            font-size: 14px;
        }

        .card-link {
            display: block;
            margin-top: 20px;
            text-decoration: none;
            color: #4caf50;
            transition: color 0.3s ease;
        }

        .card-link:hover {
            color: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>欢迎来到管理员主界面</h1>

        <div class="card">
            <div class="card-content">
                <div class="card-title">课程</div>
                <div class="card-description">查看所有课程</div>
                <a class="card-link" th:href="@{/manong/getlessonAll}">了解更多</a>
            </div>
        </div>

        <div class="card">
            <div class="card-content">
                <div class="card-title">老师</div>
                <div class="card-description">查看所有老师</div>
                <a class="card-link" th:href="@{/manong/getTeacherAll}">了解更多</a>
            </div>
        </div>

        <div class="card">
            <div class="card-content">
                <div class="card-title">学生</div>
                <div class="card-description">查看所有学生</div>
                <a class="card-link" th:href="@{/manong/getStudentAll}">了解更多</a>
            </div>
        </div>
          <div class="card">
            <div class="card-content">
                <div class="card-title">个人</div>
                <div class="card-description">查看信息</div>
                <a class="card-link" th:href="@{/manong/getManager(id=${manager.username})}">点击查看</a>
            </div>
        </div>
    </div>
</body>
</html>
